package org.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author ${USER}
 * @date ${DATE} ${TIME}
 * @apiNote
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
@ServletComponentScan(basePackages = {"org.example.filter"})
public class HystrixApplication {
    //除了ddd和 eureka 不依赖其他
    public static void main(String[] args) {
        SpringApplication.run(HystrixApplication.class,args);
    }
}